package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.entity.Dish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author xyiaao
 * @description 针对表【dish(菜品管理)】的数据库操作Mapper
 * @createDate 2022-02-06 10:55:06
 * @Entity com.itheima.reggie.entity.Dish
 */
@Mapper
public interface DishMapper extends BaseMapper<Dish> {

    Integer countSaleNum(@Param("id") Long id, @Param("beginTime") String beginTime, @Param("endTime") String endTime);

    Integer countSetmealDishSaleNum(@Param("id") Long id, @Param("beginTime") String beginTime, @Param("endTime") String endTime);

}




